Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: update go dependencies #1329

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

chore: update go dependencies #1329

wants to merge 1 commit into from

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Jan 4, 2025

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
cloud.google.com/go/profiler v0.3.0 -> v0.4.2 age adoption passing confidence
cloud.google.com/go/storage v1.36.0 -> v1.50.0 age adoption passing confidence
github.com/99designs/gqlgen v0.17.43 -> v0.17.63 age adoption passing confidence
github.com/GoogleCloudPlatform/opentelemetry-operations-go/exporter/trace v1.21.0 -> v1.25.0 age adoption passing confidence
github.com/avast/retry-go/v4 v4.0.4 -> v4.6.0 age adoption passing confidence
github.com/aws/aws-sdk-go-v2 v1.25.3 -> v1.32.8 age adoption passing confidence
github.com/aws/aws-sdk-go-v2/config v1.27.7 -> v1.28.10 age adoption passing confidence
github.com/aws/aws-sdk-go-v2/service/s3 v1.52.0 -> v1.72.2 age adoption passing confidence
github.com/gavv/httpexpect/v2 v2.3.1 -> v2.16.0 age adoption passing confidence
github.com/goccy/go-yaml v1.11.3 -> v1.15.13 age adoption passing confidence
github.com/joho/godotenv v1.4.0 -> v1.5.1 age adoption passing confidence
github.com/k0kubun/pp/v3 v3.2.0 -> v3.4.1 age adoption passing confidence
github.com/labstack/echo/v4 v4.11.4 -> v4.13.3 age adoption passing confidence
github.com/oklog/ulid v1.3.1 -> v2.1.0 age adoption passing confidence
github.com/paulmach/go.geojson v1.4.0 -> v1.5.0 age adoption passing confidence
github.com/ravilushqa/otelgqlgen v0.15.0 -> v0.17.0 age adoption passing confidence
github.com/samber/lo v1.39.0 -> v1.47.0 age adoption passing confidence
github.com/spf13/afero v1.11.0 -> v1.12.0 age adoption passing confidence
github.com/stretchr/testify v1.8.4 -> v1.10.0 age adoption passing confidence
github.com/twpayne/go-kml v1.5.2 -> v3.2.1 age adoption passing confidence
github.com/vektah/gqlparser/v2 v2.5.11 -> v2.5.21 age adoption passing confidence
github.com/zitadel/oidc v1.13.5 -> v3.34.0 age adoption passing confidence
go.mongodb.org/mongo-driver v1.13.1 -> v2.0.0 age adoption passing confidence
go.opentelemetry.io/contrib/instrumentation/github.com/labstack/echo/otelecho v0.32.0 -> v0.58.0 age adoption passing confidence
go.opentelemetry.io/contrib/instrumentation/go.mongodb.org/mongo-driver/mongo/otelmongo v0.32.0 -> v0.58.0 age adoption passing confidence
go.opentelemetry.io/otel v1.22.0 -> v1.33.0 age adoption passing confidence
go.opentelemetry.io/otel/sdk v1.22.0 -> v1.33.0 age adoption passing confidence
golang.org/x/net v0.20.0 -> v0.34.0 age adoption passing confidence
golang.org/x/oauth2 v0.16.0 -> v0.25.0 age adoption passing confidence
golang.org/x/text v0.14.0 -> v0.21.0 age adoption passing confidence
golang.org/x/tools v0.17.0 -> v0.29.0 age adoption passing confidence
google.golang.org/api v0.161.0 -> v0.216.0 age adoption passing confidence

Release Notes

googleapis/google-cloud-go (cloud.google.com/go/profiler)

v0.4.0

  • bigquery:
    -NewGCSReference is now a function, not a method on Client.

    • Table.LoaderFrom now accepts a ReaderSource, enabling
      loading data into a table from a file or any io.Reader.
    • Client.Table and Client.OpenTable have been removed.
      Replace

      client.OpenTable("project", "dataset", "table")

      with

      client.DatasetInProject("project", "dataset").Table("table")
    • Client.CreateTable has been removed.
      Replace

      client.CreateTable(ctx, "project", "dataset", "table")

      with

      client.DatasetInProject("project", "dataset").Table("table").Create(ctx)
    • Dataset.ListTables have been replaced with Dataset.Tables.
      Replace

      tables, err := ds.ListTables(ctx)

      with

      it := ds.Tables(ctx)
      for {
          table, err := it.Next()
          if err == iterator.Done {
              break
          }
          if err != nil {
              // TODO: Handle error.
          }
          // TODO: use table.
      }
    • Client.Read has been replaced with Job.Read, Table.Read and Query.Read.
      Replace

      it, err := client.Read(ctx, job)

      with

      it, err := job.Read(ctx)

      and similarly for reading from tables or queries.

    • The iterator returned from the Read methods is now named RowIterator. Its
      behavior is closer to the other iterators in these libraries. It no longer
      supports the Schema method; see the next item.
      Replace

      for it.Next(ctx) {
          var vals ValueList
          if err := it.Get(&vals); err != nil {
              // TODO: Handle error.
          }
          // TODO: use vals.
      }
      if err := it.Err(); err != nil {
          // TODO: Handle error.
      }

      with
      for {
      var vals ValueList
      err := it.Next(&vals)
      if err == iterator.Done {
      break
      }
      if err != nil {
      // TODO: Handle error.
      }
      // TODO: use vals.
      }
      Instead of the RecordsPerRequest(n) option, write

      it.PageInfo().MaxSize = n

      Instead of the StartIndex(i) option, write

      it.StartIndex = i
    • ValueLoader.Load now takes a Schema in addition to a slice of Values.
      Replace

      func (vl *myValueLoader) Load(v []bigquery.Value)

      with

      func (vl *myValueLoader) Load(v []bigquery.Value, s bigquery.Schema)
    • Table.Patch is replace by Table.Update.
      Replace

      p := table.Patch()
      p.Description("new description")
      metadata, err := p.Apply(ctx)

      with

      metadata, err := table.Update(ctx, bigquery.TableMetadataToUpdate{
          Description: "new description",
      })
    • Client.Copy is replaced by separate methods for each of its four functions.
      All options have been replaced by struct fields.

      • To load data from Google Cloud Storage into a table, use Table.LoaderFrom.

        Replace

        client.Copy(ctx, table, gcsRef)

        with

        table.LoaderFrom(gcsRef).Run(ctx)

        Instead of passing options to Copy, set fields on the Loader:

        loader := table.LoaderFrom(gcsRef)
        loader.WriteDisposition = bigquery.WriteTruncate
      • To extract data from a table into Google Cloud Storage, use
        Table.ExtractorTo. Set fields on the returned Extractor instead of
        passing options.

        Replace

        client.Copy(ctx, gcsRef, table)

        with

        table.ExtractorTo(gcsRef).Run(ctx)
      • To copy data into a table from one or more other tables, use
        Table.CopierFrom. Set fields on the returned Copier instead of passing options.

        Replace

        client.Copy(ctx, dstTable, srcTable)

        with

        dst.Table.CopierFrom(srcTable).Run(ctx)
      • To start a query job, create a Query and call its Run method. Set fields
        on the query instead of passing options.

        Replace

        client.Copy(ctx, table, query)

        with

        query.Run(ctx)
    • Table.NewUploader has been renamed to Table.Uploader. Instead of options,
      configure an Uploader by setting its fields.
      Replace

      u := table.NewUploader(bigquery.UploadIgnoreUnknownValues())

      with

      u := table.NewUploader(bigquery.UploadIgnoreUnknownValues())
      u.IgnoreUnknownValues = true
  • pubsub: remove pubsub.Done. Use iterator.Done instead, where iterator is the package
    google.golang.org/api/iterator.

99designs/gqlgen (github.com/99designs/gqlgen)

v0.17.63

Compare Source

What's Changed

New Contributors

Full Changelog: 99designs/gqlgen@v0.17.62...v0.17.63

v0.17.62

Compare Source

What's Changed

New Contributors

Full Changelog: 99designs/gqlgen@v0.17.61...v0.17.62

v0.17.61

Compare Source

What's Changed

New Contributors

Full Changelog: 99designs/gqlgen@v0.17.60...v0.17.61

v0.17.60

Compare Source

What's Changed

Full Changelog: 99designs/gqlgen@v0.17.59...v0.17.60

v0.17.59

Compare Source

What's Changed

Full Changelog: 99designs/gqlgen@v0.17.58...v0.17.59

v0.17.58

Compare Source

What's Changed

New Contributors

Full Changelog: 99designs/gqlgen@v0.17.57...v0.17.58

v0.17.57

Compare Source

What's Changed

New Contributors

Full Changelog: 99designs/gqlgen@v0.17.56...v0.17.57

v0.17.56

Compare Source

What's Changed

@renovate renovate bot requested a review from pyshx as a code owner January 4, 2025 00:22
Copy link
Contributor Author

renovate bot commented Jan 4, 2025

⚠️ Artifact update problem

Renovate failed to update an artifact related to this branch. You probably do not want to merge this PR as-is.

♻ Renovate will retry this branch, including artifacts, only when one of the following happens:

  • any of the package files in this branch needs updating, or
  • the branch becomes conflicted, or
  • you click the rebase/retry checkbox if found above, or
  • you rename this PR's title to start with "rebase!" to trigger it manually

The artifact failure details are included below:

File name: server/go.sum
Command failed: mod upgrade --mod-name=go.mongodb.org/mongo-driver -t=2
go: downloading go.mongodb.org/mongo-driver v1.17.2
go: finding module for package go.mongodb.org/mongo-driver/v2/bson/primitive
go: downloading go.mongodb.org/mongo-driver/v2 v2.0.0
go: finding module for package go.mongodb.org/mongo-driver/v2/mongo
go: finding module for package go.mongodb.org/mongo-driver/v2/mongo/options
go: finding module for package go.mongodb.org/mongo-driver/v2/bson
go: found go.mongodb.org/mongo-driver/v2/mongo in go.mongodb.org/mongo-driver/v2 v2.0.0
go: found go.mongodb.org/mongo-driver/v2/mongo/options in go.mongodb.org/mongo-driver/v2 v2.0.0
go: found go.mongodb.org/mongo-driver/v2/bson in go.mongodb.org/mongo-driver/v2 v2.0.0
go: finding module for package go.mongodb.org/mongo-driver/v2/bson/primitive
go: github.com/reearth/reearth/server/internal/adapter/gql/gqlmodel imports
	go.mongodb.org/mongo-driver/v2/bson/primitive: module go.mongodb.org/mongo-driver/v2@latest found (v2.0.0), but does not contain package go.mongodb.org/mongo-driver/v2/bson/primitive
exit status 1

Copy link

coderabbitai bot commented Jan 4, 2025

Important

Review skipped

Bot user detected.

To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.


🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Generate unit testing code for this file.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai generate unit testing code for this file.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and generate unit testing code.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai generate docstrings to generate docstrings for this PR. (Beta)
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

@github-actions github-actions bot added the server label Jan 4, 2025
Copy link

netlify bot commented Jan 4, 2025

Deploy Preview for reearth-web canceled.

Name Link
🔨 Latest commit 918eef0
🔍 Latest deploy log https://app.netlify.com/sites/reearth-web/deploys/67819baaeae0520008ffe41f

@renovate renovate bot force-pushed the renovate/gomod branch 9 times, most recently from a0cf536 to a7aae1d Compare January 9, 2025 22:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants